<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<input type="button" @click="do" />
			<input type="button" @click="do" />
		</div>
		<script>
			var vm = new Vue({
				el: "#app",
				data: {
					food: '西红柿'
				},
				methods: {
					do(){
						alert("zou")
					}
				}
			})
		</script>
	</body>
</html>